package wk.demo.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.Toast;

import com.luoye.bzijkplayer.R;
import wk.demo.fragments.SettingsFragment;
import wk.demo.tool.WkLogTool;

public class SettingsActivity extends BashCompatActivity {
    public static Intent newIntent(Context context) {
        return new Intent(context, SettingsActivity.class);
    }

    public static void intentTo(Context context) {
        context.startActivity(newIntent(context));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Fragment newFragment = SettingsFragment.newInstance();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.replace(R.id.body, newFragment);
        transaction.commit();

        setTtitleMsg("设置");
        findViewById(R.id.rightLay).setVisibility(View.GONE);
    }


}

